﻿using System;
using Mono.Rift.Core.Graphics;
using OpenTK;

namespace Mono.Rift.Platform.OSX
{
	public class PlatformCoreOSXOpenTK : PlatformCore
	{
		public Toolkit Toolkit { get; set; }

		public PlatformCoreOSXOpenTK ()
		{
			Width = 1200.0;
			Height = 800.0;

			var options = ToolkitOptions.Default;
			Toolkit = Toolkit.Init (options);
		}

		public override void onStartup()
		{
		}

		public override RenderDevice setupGraphics()
		{
			var rd = new OpenTKOSXRenderDevice ((int)Width, (int)Height);
			return rd;
		}

		static PlatformCoreOSXOpenTK()
		{
			_factory = () => new PlatformCoreOSXOpenTK ();
		}

		public static void init ()
		{
		}
	}
}

